<?php
namespace app\index\controller;
use app\index\controller\Commonse;
use HomeArray\Home;
use HomeArray\HomeArray\HomeArray;

class Index extends Commonse{
      public function __construct(){
      echo  parent::__construct();
      
    }   
    
    function index(){
     $time=date('Y-m-d');
        return "<div style='color:#fff;text-align:center;margin:200px auto;font-size:30px'>欢迎登陆 {$time}</div>";
    }
    function set(){
      return  $this->fetch();
    }
    
    function redis(){
        $sdsd=redisd()->HSet("homes", 1, array(
            "role_user_id"=>0,
            "rolemoney"=>0,
            "nickname"=>0,
            "createid"=>0
        ));
        dump($sdsd);
        $dsd=redisd()->HgetAll("homes");
        dump($dsd);
    }
    
    
    
    
    
    
    
    
    
}